package com.lhd.service;

import com.lhd.po.Blog;
import com.lhd.vo.BlogQuery;

import java.util.List;
import java.util.Map;

/**
 * Created by limi on 2017/10/20.
 */
public interface BlogService {

    Blog getBlog(Long id);

    Blog getAndConvert(Long id);

    List<Blog> listBlog(Integer page,BlogQuery blog);

    Long countBlogByQuery(BlogQuery blog);

    List<Blog> listBlog(Integer page);

    List<Blog> listBlog(Long tagId,Integer page);

    List<Blog> listBlog(String query,Integer page);

    List<Blog> listBlogByTypeId(Long typeId,Integer page);

    List<Blog> listRecommendBlogTop(Integer size);

    List<Blog> listBlogByPage(Integer page);

    List<Blog> getTopFiveBlog(Integer page);

    List<Blog> getBlogByQurey(Boolean r, Long typeId);

    List<Blog> getBlogByRe(Boolean r);

    Map<String,List<Blog>> archiveBlog();

    Long countBlog();

    Integer saveBlog(Blog blog);

    Integer updateBlog(Long id,Blog blog);

    Integer deleteBlog(Long id);

    Long getMaxBlogId();
}
